package com.markyao.controller.recos;

import com.markyao.service.RecosViewService;
import com.markyao.utils.LocalUtils;
import com.markyao.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/recos/group")
public class RecosGroupShowController {
    @Autowired
    RecosViewService recosViewService;

    @GetMapping("info")
    public Result info(){
        return recosViewService.selectInfo();
    }

    @GetMapping("health")
    public String info0(){
        boolean reachable = LocalUtils.isReachable();
        return reachable?"h":"s";
    }


}
